package com.apartmentManage.service;

import com.apartmentManage.entity.Apartment;
import com.apartmentManage.entity.ApartmentTutor;

import java.util.List;

public interface ApartmentService {
    /*查询*/
    List<Apartment> getAll();
    /*条件模糊查询*/
    List<Apartment> getByRequirement(Apartment apartment);
    /*条件查询*/
    Apartment getByNo(Integer apartmentNo);
    /*获取所有no*/
    List<Integer> getAllNo();
    /*获取所有status*/
//    List<String> getAllStatus();
    /*添加*/
    boolean add(Apartment apartment);
    /*删除*/
    boolean delete( Integer apartmentNo);
    /*修改*/
    boolean update(Apartment apartment);
}
